from django.urls import path, include
from django.views.decorators.csrf import csrf_exempt

from .views import UserAPIView


app_name = 'users'

# 定义API的URL模式
urlpatterns = [

    # 使用csrf_exempt装饰器，将PermissionSelectView视图标记为豁免CSRF保护
    path('login', csrf_exempt(UserAPIView.as_view()), name="user_login"),
]